<template>
	<div class="topBtn">
		<uni-icons @click="Back()" type="back" size="26" color='#fff'></uni-icons>
		 <text class="title">{{title}}</text> 
	</div>

</template>

<script>
	export default {
		props: ["title"],
		data() {
			return {}
		},

		created() {

		},
		methods: {
			Back() {
				//uni.navigateBack()//默认delta:1
				uni.navigateBack({
					delta: 1, //返回层数，2则上上页
				})
			},

		}
	}
</script>

<style lang="less" scopde>
	.topBtn {
		display: flex;
		font-size: 36rpx;
		padding-top: 68rpx;
		font-weight: 400;
		color: #FFFFFF;
		box-sizing: border-box;
		padding-left: 22rpx;
		background-color: #B7A689;
		width: 750rpx;
		height: 128rpx;
		position: relative;
		.title{
			width: 100%;
			text-align: center;
			position: absolute;
			left: 50%;
			transform: translateX(-50%);
		}
	}
</style>